package com.shiyi.design.observer;

/**
 * @author wangzhanshuai
 * @date 2021/2/1 11:39 下午
 * @since 1.0
 */
public class Client {

    public static void main(String[] args) {
        Baby baby = new Baby();
        baby.addListener(new DadListener());
        baby.addListener(new MotherListener());
        baby.wakeUp();
        baby.hunger();
    }
}
